Integrand size = 18, antiderivative size = 1523 \[ \int \frac {x}{\left (a+b \sec \left (c+d \sqrt {x}\right )\right )^2} \, dx=-\frac {2 i b^2 x^{3/2}}{a^2 \left (a^2-b^2\right ) d}+\frac {x^2}{2 a^2}+\frac {6 b^2 x \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-i \sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^2}+\frac {6 b^2 x \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+i \sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^2}-\frac {2 i b^3 x^{3/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d}+\frac {4 i b x^{3/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d}+\frac {2 i b^3 x^{3/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d}-\frac {4 i b x^{3/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d}-\frac {12 i b^2 \sqrt {x} \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-i \sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^3}-\frac {12 i b^2 \sqrt {x} \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+i \sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^3}-\frac {6 b^3 x \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d^2}+\frac {12 b x \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d^2}+\frac {6 b^3 x \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d^2}-\frac {12 b x \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d^2}+\frac {12 b^2 \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-i \sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^4}+\frac {12 b^2 \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+i \sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^4}-\frac {12 i b^3 \sqrt {x} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d^3}+\frac {24 i b \sqrt {x} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d^3}+\frac {12 i b^3 \sqrt {x} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d^3}-\frac {24 i b \sqrt {x} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d^3}+\frac {12 b^3 \operatorname {PolyLog}\left (4,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d^4}-\frac {24 b \operatorname {PolyLog}\left (4,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d^4}-\frac {12 b^3 \operatorname {PolyLog}\left (4,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d^4}+\frac {24 b \operatorname {PolyLog}\left (4,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d^4}+\frac {2 b^2 x^{3/2} \sin \left (c+d \sqrt {x}\right )}{a \left (a^2-b^2\right ) d \left (b+a \cos \left (c+d \sqrt {x}\right )\right )} \]
[Out]
Time = 2.99 (sec) , antiderivative size = 1523, normalized size of antiderivative = 1.00, number of steps used = 37, number of rules used = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.611, Rules used = {4289, 4276, 3405, 3402, 2296, 2221, 2611, 6744, 2320, 6724, 4618} \[ \int \frac {x}{\left (a+b \sec \left (c+d \sqrt {x}\right )\right )^2} \, dx=-\frac {2 i x^{3/2} \log \left (\frac {e^{i \left (c+d \sqrt {x}\right )} a}{b-\sqrt {b^2-a^2}}+1\right ) b^3}{a^2 \left (b^2-a^2\right )^{3/2} d}+\frac {2 i x^{3/2} \log \left (\frac {e^{i \left (c+d \sqrt {x}\right )} a}{b+\sqrt {b^2-a^2}}+1\right ) b^3}{a^2 \left (b^2-a^2\right )^{3/2} d}-\frac {6 x \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {b^2-a^2}}\right ) b^3}{a^2 \left (b^2-a^2\right )^{3/2} d^2}+\frac {6 x \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {b^2-a^2}}\right ) b^3}{a^2 \left (b^2-a^2\right )^{3/2} d^2}-\frac {12 i \sqrt {x} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {b^2-a^2}}\right ) b^3}{a^2 \left (b^2-a^2\right )^{3/2} d^3}+\frac {12 i \sqrt {x} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {b^2-a^2}}\right ) b^3}{a^2 \left (b^2-a^2\right )^{3/2} d^3}+\frac {12 \operatorname {PolyLog}\left (4,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {b^2-a^2}}\right ) b^3}{a^2 \left (b^2-a^2\right )^{3/2} d^4}-\frac {12 \operatorname {PolyLog}\left (4,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {b^2-a^2}}\right ) b^3}{a^2 \left (b^2-a^2\right )^{3/2} d^4}-\frac {2 i x^{3/2} b^2}{a^2 \left (a^2-b^2\right ) d}+\frac {6 x \log \left (\frac {e^{i \left (c+d \sqrt {x}\right )} a}{b-i \sqrt {a^2-b^2}}+1\right ) b^2}{a^2 \left (a^2-b^2\right ) d^2}+\frac {6 x \log \left (\frac {e^{i \left (c+d \sqrt {x}\right )} a}{b+i \sqrt {a^2-b^2}}+1\right ) b^2}{a^2 \left (a^2-b^2\right ) d^2}-\frac {12 i \sqrt {x} \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-i \sqrt {a^2-b^2}}\right ) b^2}{a^2 \left (a^2-b^2\right ) d^3}-\frac {12 i \sqrt {x} \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+i \sqrt {a^2-b^2}}\right ) b^2}{a^2 \left (a^2-b^2\right ) d^3}+\frac {12 \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-i \sqrt {a^2-b^2}}\right ) b^2}{a^2 \left (a^2-b^2\right ) d^4}+\frac {12 \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+i \sqrt {a^2-b^2}}\right ) b^2}{a^2 \left (a^2-b^2\right ) d^4}+\frac {2 x^{3/2} \sin \left (c+d \sqrt {x}\right ) b^2}{a \left (a^2-b^2\right ) d \left (b+a \cos \left (c+d \sqrt {x}\right )\right )}+\frac {4 i x^{3/2} \log \left (\frac {e^{i \left (c+d \sqrt {x}\right )} a}{b-\sqrt {b^2-a^2}}+1\right ) b}{a^2 \sqrt {b^2-a^2} d}-\frac {4 i x^{3/2} \log \left (\frac {e^{i \left (c+d \sqrt {x}\right )} a}{b+\sqrt {b^2-a^2}}+1\right ) b}{a^2 \sqrt {b^2-a^2} d}+\frac {12 x \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {b^2-a^2}}\right ) b}{a^2 \sqrt {b^2-a^2} d^2}-\frac {12 x \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {b^2-a^2}}\right ) b}{a^2 \sqrt {b^2-a^2} d^2}+\frac {24 i \sqrt {x} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {b^2-a^2}}\right ) b}{a^2 \sqrt {b^2-a^2} d^3}-\frac {24 i \sqrt {x} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {b^2-a^2}}\right ) b}{a^2 \sqrt {b^2-a^2} d^3}-\frac {24 \operatorname {PolyLog}\left (4,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {b^2-a^2}}\right ) b}{a^2 \sqrt {b^2-a^2} d^4}+\frac {24 \operatorname {PolyLog}\left (4,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {b^2-a^2}}\right ) b}{a^2 \sqrt {b^2-a^2} d^4}+\frac {x^2}{2 a^2} \]
[In]
[Out]
Rule 2221
Rule 2296
Rule 2320
Rule 2611
Rule 3402
Rule 3405
Rule 4276
Rule 4289
Rule 4618
Rule 6724
Rule 6744
Rubi steps \begin{align*} \text {integral}& = 2 \text {Subst}\left (\int \frac {x^3}{(a+b \sec (c+d x))^2} \, dx,x,\sqrt {x}\right ) \\ & = 2 \text {Subst}\left (\int \left (\frac {x^3}{a^2}+\frac {b^2 x^3}{a^2 (b+a \cos (c+d x))^2}-\frac {2 b x^3}{a^2 (b+a \cos (c+d x))}\right ) \, dx,x,\sqrt {x}\right ) \\ & = \frac {x^2}{2 a^2}-\frac {(4 b) \text {Subst}\left (\int \frac {x^3}{b+a \cos (c+d x)} \, dx,x,\sqrt {x}\right )}{a^2}+\frac {\left (2 b^2\right ) \text {Subst}\left (\int \frac {x^3}{(b+a \cos (c+d x))^2} \, dx,x,\sqrt {x}\right )}{a^2} \\ & = \frac {x^2}{2 a^2}+\frac {2 b^2 x^{3/2} \sin \left (c+d \sqrt {x}\right )}{a \left (a^2-b^2\right ) d \left (b+a \cos \left (c+d \sqrt {x}\right )\right )}-\frac {(8 b) \text {Subst}\left (\int \frac {e^{i (c+d x)} x^3}{a+2 b e^{i (c+d x)}+a e^{2 i (c+d x)}} \, dx,x,\sqrt {x}\right )}{a^2}-\frac {\left (2 b^3\right ) \text {Subst}\left (\int \frac {x^3}{b+a \cos (c+d x)} \, dx,x,\sqrt {x}\right )}{a^2 \left (a^2-b^2\right )}-\frac {\left (6 b^2\right ) \text {Subst}\left (\int \frac {x^2 \sin (c+d x)}{b+a \cos (c+d x)} \, dx,x,\sqrt {x}\right )}{a \left (a^2-b^2\right ) d} \\ & = -\frac {2 i b^2 x^{3/2}}{a^2 \left (a^2-b^2\right ) d}+\frac {x^2}{2 a^2}+\frac {2 b^2 x^{3/2} \sin \left (c+d \sqrt {x}\right )}{a \left (a^2-b^2\right ) d \left (b+a \cos \left (c+d \sqrt {x}\right )\right )}-\frac {\left (4 b^3\right ) \text {Subst}\left (\int \frac {e^{i (c+d x)} x^3}{a+2 b e^{i (c+d x)}+a e^{2 i (c+d x)}} \, dx,x,\sqrt {x}\right )}{a^2 \left (a^2-b^2\right )}-\frac {(8 b) \text {Subst}\left (\int \frac {e^{i (c+d x)} x^3}{2 b-2 \sqrt {-a^2+b^2}+2 a e^{i (c+d x)}} \, dx,x,\sqrt {x}\right )}{a \sqrt {-a^2+b^2}}+\frac {(8 b) \text {Subst}\left (\int \frac {e^{i (c+d x)} x^3}{2 b+2 \sqrt {-a^2+b^2}+2 a e^{i (c+d x)}} \, dx,x,\sqrt {x}\right )}{a \sqrt {-a^2+b^2}}-\frac {\left (6 b^2\right ) \text {Subst}\left (\int \frac {e^{i (c+d x)} x^2}{i b-\sqrt {a^2-b^2}+i a e^{i (c+d x)}} \, dx,x,\sqrt {x}\right )}{a \left (a^2-b^2\right ) d}-\frac {\left (6 b^2\right ) \text {Subst}\left (\int \frac {e^{i (c+d x)} x^2}{i b+\sqrt {a^2-b^2}+i a e^{i (c+d x)}} \, dx,x,\sqrt {x}\right )}{a \left (a^2-b^2\right ) d} \\ & = -\frac {2 i b^2 x^{3/2}}{a^2 \left (a^2-b^2\right ) d}+\frac {x^2}{2 a^2}+\frac {6 b^2 x \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-i \sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^2}+\frac {6 b^2 x \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+i \sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^2}+\frac {4 i b x^{3/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d}-\frac {4 i b x^{3/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d}+\frac {2 b^2 x^{3/2} \sin \left (c+d \sqrt {x}\right )}{a \left (a^2-b^2\right ) d \left (b+a \cos \left (c+d \sqrt {x}\right )\right )}+\frac {\left (4 b^3\right ) \text {Subst}\left (\int \frac {e^{i (c+d x)} x^3}{2 b-2 \sqrt {-a^2+b^2}+2 a e^{i (c+d x)}} \, dx,x,\sqrt {x}\right )}{a \left (-a^2+b^2\right )^{3/2}}-\frac {\left (4 b^3\right ) \text {Subst}\left (\int \frac {e^{i (c+d x)} x^3}{2 b+2 \sqrt {-a^2+b^2}+2 a e^{i (c+d x)}} \, dx,x,\sqrt {x}\right )}{a \left (-a^2+b^2\right )^{3/2}}-\frac {\left (12 b^2\right ) \text {Subst}\left (\int x \log \left (1+\frac {i a e^{i (c+d x)}}{i b-\sqrt {a^2-b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a^2 \left (a^2-b^2\right ) d^2}-\frac {\left (12 b^2\right ) \text {Subst}\left (\int x \log \left (1+\frac {i a e^{i (c+d x)}}{i b+\sqrt {a^2-b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a^2 \left (a^2-b^2\right ) d^2}-\frac {(12 i b) \text {Subst}\left (\int x^2 \log \left (1+\frac {2 a e^{i (c+d x)}}{2 b-2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a^2 \sqrt {-a^2+b^2} d}+\frac {(12 i b) \text {Subst}\left (\int x^2 \log \left (1+\frac {2 a e^{i (c+d x)}}{2 b+2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a^2 \sqrt {-a^2+b^2} d} \\ & = -\frac {2 i b^2 x^{3/2}}{a^2 \left (a^2-b^2\right ) d}+\frac {x^2}{2 a^2}+\frac {6 b^2 x \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-i \sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^2}+\frac {6 b^2 x \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+i \sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^2}-\frac {2 i b^3 x^{3/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d}+\frac {4 i b x^{3/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d}+\frac {2 i b^3 x^{3/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d}-\frac {4 i b x^{3/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d}-\frac {12 i b^2 \sqrt {x} \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-i \sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^3}-\frac {12 i b^2 \sqrt {x} \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+i \sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^3}+\frac {12 b x \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d^2}-\frac {12 b x \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d^2}+\frac {2 b^2 x^{3/2} \sin \left (c+d \sqrt {x}\right )}{a \left (a^2-b^2\right ) d \left (b+a \cos \left (c+d \sqrt {x}\right )\right )}+\frac {\left (12 i b^2\right ) \text {Subst}\left (\int \operatorname {PolyLog}\left (2,-\frac {i a e^{i (c+d x)}}{i b-\sqrt {a^2-b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a^2 \left (a^2-b^2\right ) d^3}+\frac {\left (12 i b^2\right ) \text {Subst}\left (\int \operatorname {PolyLog}\left (2,-\frac {i a e^{i (c+d x)}}{i b+\sqrt {a^2-b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a^2 \left (a^2-b^2\right ) d^3}-\frac {(24 b) \text {Subst}\left (\int x \operatorname {PolyLog}\left (2,-\frac {2 a e^{i (c+d x)}}{2 b-2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a^2 \sqrt {-a^2+b^2} d^2}+\frac {(24 b) \text {Subst}\left (\int x \operatorname {PolyLog}\left (2,-\frac {2 a e^{i (c+d x)}}{2 b+2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a^2 \sqrt {-a^2+b^2} d^2}+\frac {\left (6 i b^3\right ) \text {Subst}\left (\int x^2 \log \left (1+\frac {2 a e^{i (c+d x)}}{2 b-2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d}-\frac {\left (6 i b^3\right ) \text {Subst}\left (\int x^2 \log \left (1+\frac {2 a e^{i (c+d x)}}{2 b+2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d} \\ & = \text {Too large to display} \\ \end{align*}
Time = 15.26 (sec) , antiderivative size = 1767, normalized size of antiderivative = 1.16 \[ \int \frac {x}{\left (a+b \sec \left (c+d \sqrt {x}\right )\right )^2} \, dx=\frac {x^2 \left (b+a \cos \left (c+d \sqrt {x}\right )\right )^2 \sec ^2\left (c+d \sqrt {x}\right )}{2 a^2 \left (a+b \sec \left (c+d \sqrt {x}\right )\right )^2}+\frac {2 b \left (b+a \cos \left (c+d \sqrt {x}\right )\right )^2 \left (-\frac {2 i b d^3 e^{2 i c} x^{3/2}}{1+e^{2 i c}}+\frac {3 b d^2 \sqrt {\left (-a^2+b^2\right ) e^{2 i c}} x \log \left (1+\frac {a e^{i \left (2 c+d \sqrt {x}\right )}}{b e^{i c}-\sqrt {\left (-a^2+b^2\right ) e^{2 i c}}}\right )+2 i a^2 d^3 e^{i c} x^{3/2} \log \left (1+\frac {a e^{i \left (2 c+d \sqrt {x}\right )}}{b e^{i c}-\sqrt {\left (-a^2+b^2\right ) e^{2 i c}}}\right )-i b^2 d^3 e^{i c} x^{3/2} \log \left (1+\frac {a e^{i \left (2 c+d \sqrt {x}\right )}}{b e^{i c}-\sqrt {\left (-a^2+b^2\right ) e^{2 i c}}}\right )+3 b d^2 \sqrt {\left (-a^2+b^2\right ) e^{2 i c}} x \log \left (1+\frac {a e^{i \left (2 c+d \sqrt {x}\right )}}{b e^{i c}+\sqrt {\left (-a^2+b^2\right ) e^{2 i c}}}\right )-2 i a^2 d^3 e^{i c} x^{3/2} \log \left (1+\frac {a e^{i \left (2 c+d \sqrt {x}\right )}}{b e^{i c}+\sqrt {\left (-a^2+b^2\right ) e^{2 i c}}}\right )+i b^2 d^3 e^{i c} x^{3/2} \log \left (1+\frac {a e^{i \left (2 c+d \sqrt {x}\right )}}{b e^{i c}+\sqrt {\left (-a^2+b^2\right ) e^{2 i c}}}\right )-3 d \left (2 i b \sqrt {\left (-a^2+b^2\right ) e^{2 i c}}-2 a^2 d e^{i c} \sqrt {x}+b^2 d e^{i c} \sqrt {x}\right ) \sqrt {x} \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (2 c+d \sqrt {x}\right )}}{b e^{i c}-\sqrt {\left (-a^2+b^2\right ) e^{2 i c}}}\right )+3 d \left (-2 i b \sqrt {\left (-a^2+b^2\right ) e^{2 i c}}-2 a^2 d e^{i c} \sqrt {x}+b^2 d e^{i c} \sqrt {x}\right ) \sqrt {x} \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (2 c+d \sqrt {x}\right )}}{b e^{i c}+\sqrt {\left (-a^2+b^2\right ) e^{2 i c}}}\right )+6 b \sqrt {\left (-a^2+b^2\right ) e^{2 i c}} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (2 c+d \sqrt {x}\right )}}{b e^{i c}-\sqrt {\left (-a^2+b^2\right ) e^{2 i c}}}\right )+12 i a^2 d e^{i c} \sqrt {x} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (2 c+d \sqrt {x}\right )}}{b e^{i c}-\sqrt {\left (-a^2+b^2\right ) e^{2 i c}}}\right )-6 i b^2 d e^{i c} \sqrt {x} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (2 c+d \sqrt {x}\right )}}{b e^{i c}-\sqrt {\left (-a^2+b^2\right ) e^{2 i c}}}\right )+6 b \sqrt {\left (-a^2+b^2\right ) e^{2 i c}} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (2 c+d \sqrt {x}\right )}}{b e^{i c}+\sqrt {\left (-a^2+b^2\right ) e^{2 i c}}}\right )-12 i a^2 d e^{i c} \sqrt {x} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (2 c+d \sqrt {x}\right )}}{b e^{i c}+\sqrt {\left (-a^2+b^2\right ) e^{2 i c}}}\right )+6 i b^2 d e^{i c} \sqrt {x} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (2 c+d \sqrt {x}\right )}}{b e^{i c}+\sqrt {\left (-a^2+b^2\right ) e^{2 i c}}}\right )-12 a^2 e^{i c} \operatorname {PolyLog}\left (4,-\frac {a e^{i \left (2 c+d \sqrt {x}\right )}}{b e^{i c}-\sqrt {\left (-a^2+b^2\right ) e^{2 i c}}}\right )+6 b^2 e^{i c} \operatorname {PolyLog}\left (4,-\frac {a e^{i \left (2 c+d \sqrt {x}\right )}}{b e^{i c}-\sqrt {\left (-a^2+b^2\right ) e^{2 i c}}}\right )+12 a^2 e^{i c} \operatorname {PolyLog}\left (4,-\frac {a e^{i \left (2 c+d \sqrt {x}\right )}}{b e^{i c}+\sqrt {\left (-a^2+b^2\right ) e^{2 i c}}}\right )-6 b^2 e^{i c} \operatorname {PolyLog}\left (4,-\frac {a e^{i \left (2 c+d \sqrt {x}\right )}}{b e^{i c}+\sqrt {\left (-a^2+b^2\right ) e^{2 i c}}}\right )}{\sqrt {\left (-a^2+b^2\right ) e^{2 i c}}}\right ) \sec ^2\left (c+d \sqrt {x}\right )}{a^2 \left (a^2-b^2\right ) d^4 \left (a+b \sec \left (c+d \sqrt {x}\right )\right )^2}+\frac {2 \left (b+a \cos \left (c+d \sqrt {x}\right )\right ) \sec ^2\left (c+d \sqrt {x}\right ) \left (b^3 x^{3/2} \sin (c)-a b^2 x^{3/2} \sin \left (d \sqrt {x}\right )\right )}{a^2 (-a+b) (a+b) d \left (a+b \sec \left (c+d \sqrt {x}\right )\right )^2 \left (\cos \left (\frac {c}{2}\right )-\sin \left (\frac {c}{2}\right )\right ) \left (\cos \left (\frac {c}{2}\right )+\sin \left (\frac {c}{2}\right )\right )} \]
[In]
[Out]
\[\int \frac {x}{\left (a +b \sec \left (c +d \sqrt {x}\right )\right )^{2}}d x\]
[In]
[Out]
\[ \int \frac {x}{\left (a+b \sec \left (c+d \sqrt {x}\right )\right )^2} \, dx=\int { \frac {x}{{\left (b \sec \left (d \sqrt {x} + c\right ) + a\right )}^{2}} \,d x } \]
[In]
[Out]
\[ \int \frac {x}{\left (a+b \sec \left (c+d \sqrt {x}\right )\right )^2} \, dx=\int \frac {x}{\left (a + b \sec {\left (c + d \sqrt {x} \right )}\right )^{2}}\, dx \]
[In]
[Out]
Exception generated. \[ \int \frac {x}{\left (a+b \sec \left (c+d \sqrt {x}\right )\right )^2} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
\[ \int \frac {x}{\left (a+b \sec \left (c+d \sqrt {x}\right )\right )^2} \, dx=\int { \frac {x}{{\left (b \sec \left (d \sqrt {x} + c\right ) + a\right )}^{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {x}{\left (a+b \sec \left (c+d \sqrt {x}\right )\right )^2} \, dx=\int \frac {x}{{\left (a+\frac {b}{\cos \left (c+d\,\sqrt {x}\right )}\right )}^2} \,d x \]
[In]
[Out]